using GameEntitySystem;
using TemplatesDatabase;

namespace SCIENEW {
    public class ComponentCheckValve : ComponentTankBase {
        public override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap) {
            base.Load(valuesDictionary, idToEntityMap);
            m_tanks[0].Capacity = 1;
        }

        public override float GetTankCapacity(int tankIndex, int value) => FluidsManager.GetFluid(value) is IPipeableFluid ? base.GetTankCapacity(tankIndex, value) : 0;
    }
}